package com.geektime.hello.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;

/**
 * @Author: DRevelation
 * @Date: 2021/5/6 13:37
 * 订阅者1
 */
@Slf4j
@Service
public class CouponService {

    @EventListener
    public void addCoupon(UserRegisterEvent event) {
        log.info("[addCoupon][给用户({})发放优惠劵]", event.getUsername());
    }

}
